package com.wang.interview.designmode.builder;

/**
 * @author: wang
 * @date: 2021/7/31 20:10
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        Builder normalHouse = new NormalHouse();
        Director director = new Director(normalHouse);
        House nHouse = director.direct();
        System.out.println(nHouse);

        HighHouse highHouse = new HighHouse();
        director.setBuilder(highHouse);
        House hHouse = director.direct();
        System.out.println(hHouse);
    }
}
